package com.wj.rspmproperty.service;

import com.wj.rspmproperty.mapper.FloorMapper;
import com.wj.rspmproperty.pojo.Building;
import com.wj.rspmproperty.pojo.Floor;

import java.util.List;
import java.util.Map;

/**
 * @author WeiJin
 * @version 1.0
 */
public interface FloorService {
    /**
     * 根据楼栋id查询楼层信息
     * @param buildingId
     * @return
     */
    List<Floor> floorOfBuilding(Integer buildingId);

    /**
     * 批量添加楼层
     * @param floor 楼层模版
     * @param results 响应回去的map
     * @param size  楼层数
     * @param builtArea 楼层中房间的面积
     */
    void insertFloors(Floor floor, Map<String, Integer> results, int size, Integer[] builtArea);
}
